package com.example.activiti.handle.processhandle;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

/**
 * @Author: 程荣凯
 * @Date: 2018/9/20 1:21
 */
public class TaskListenerImpl implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        String activityId = delegateTask.getId();
        if(activityId == "employee"){
            delegateTask.setAssignee("ab11112");
        }else{
            delegateTask.setAssignee("ab3");
        }

        System.out.println(delegateTask.getId());
    }
}
